package com.ibm.cps.sql.expression.function.vector;

public class MaxDescriptor implements VectorFunctionDescriptor {



	@Override
	public Double[] evaluate(Double[] input) {
		Double max = -Double.MAX_VALUE;
		for (Double value : input) {
			if(value > max)
				max = value;
		}
		return new Double[]{max};
	}

	@Override
	public boolean isArray() {
		return false;
	}

}
